Here is the solution. This is tested.
create table test(
id int identity(1, 1), names nvarchar(80)
)
insert into test values ('Sam')
insert into test values ('Khan')
insert into test values('Julia')
insert into test values ('Khan')
insert into test values ('Wilson')
insert into test values ('Angeli ')
insert into test values ('Maria')
insert into test values ('Khan')
insert into test values ('Sam')
insert into test values ('Sam')
insert into test values ('Julia')
insert into test values ('Maria')
SELECT names,
COUNT(names) TotalCount
FROM test
GROUP BY names
HAVING COUNT(names) > 1