put the count and table in an object