Documented and added new count method for select query