select lastname, count(lastname) from table group by lastname having count(lastname)>1