Counting results for cross join
You could do this:

SELECT COUNT(*) FROM table1 t1 CROSS JOIN table1 t2;


or this format which will allow you to copy and paste any query without rewriting it and use it as a subquery:

SELECT COUNT(*) FROM (
  SELECT t1.firstname, t2.lastname
  FROM table1 t1 CROSS JOIN table1 t2
) t3;