denseRank

Returns the rank of the current row, without gaps; this function effectively counts peer groups.