I see.
="" is concidered "larger" than a number.
In my exhibit above, replace the formula in C2 with
=IF(A2<>"",COUNTIF($A$2:$A$10,">"&A2)+COUNTIF($A$2:A2,A2),COUNTA($A$2:$A$10)+1-COUNTIF($A$2:A2,A2))+IF(ISNUMBER(A2),COUNTA($A$2:$A$10)-COUNT($A$2:$A$10)-COUNTBLANK($A$2:$A$10))