Count the number of objects. In this each row is made of 10 cookies. So you can directly count 10,20 and then the ones