We can use the pigeon hole principle.
There are $26 \cdot 26 = 26^2$ possible last names.
To guarantee that at least 2 people have the same last name, we need $26^2+1$ people.
To guarantee that at least 4 people have the same last name, we need $3 \cdot 26^2+1$ people.