countrows function

Count equal rows