I'm trying to create a flow that will count all rows associated with a person in excel.

Compose Expression: length(body('List_rows_present_in_a_table')?['value'])
Output:

The count works but its counting all rows, what can I use to count rows associated to each person so the output would look like this:
John Doe 1
Jane Doe 5
Doe Jane 10