select count (*) from tableA where tableA = tableB;