Fixed the count implementation as there is no method in the abstract table gateway for count