With the following sql statement I can get all unique values with their counts for a given column:
select column, count(column) as count from table
Use multiple columns in your group by clause.
select first_name, last_name, count(*) as count from table group by first_name, last_name