Define a summary field as the "count of" your name field.
Set up a layout for list view and add a sub summary part "when sorted by" the name field.
Put the summary field into this sub summary part.
Sort your records by the name field to group them by name.
You can delete the body layout part if you just want one row for each name with a total.
That's the simplest, There are also ways to get this count with a relationship and you can also use ExecuteSQL if you have FileMaker 12.