Finding the total amount of entries with the same value

Hello babyspitz, please familiarise yourself with FAQ: Homework Policy for the future.
In the short term, please read and try the examples here: