The closest built in function that comes to mind is Col Rank( :height, <<tie( "maximum" ) ). The problem is: this counts the total number of rows at or below thisHeight, not the number of unique names.
Instead, you could try a custom formula, like this:
thisHeight = :height; //store the current height value
// Build an associative array to collect unique names at or below thisHeight
aa = Associative Array();
For( i = 1, i <= N Rows(), i++,
If( Column("height")[i] <= thisHeight,
aa[Column("name")[i]] = 1 // This only adds to the Associative Array if this is a new, unique name
)
);
// The number of Items that have been added to the array = number of unique names
N Items( aa )