Implements Countable interface

added ability to count number of rows with function 'count'