Implementation for getting count of requests to be used by pagination.
More generic implementation for querying requests. Added pagination for request grid support in services and DAO. Added requests count support used by the pagination.