retrieves row counts

working on #3