HI Arun,

welcome to the forum.
Try using below formula :-
Formula: copy to clipboard
=SUMPRODUCT(($A$1:$A1=$A1)*1)


Regards,
DILIPandey
<click on below * if this helps>