Added the count method to Table.cpp