evaluate record count with a "select count(*)" query

I integrated a simple database query which first checks the record count (with "select count(*) ...") before evaluating the actual observation value query. The GetObservationOperationHandler will respond with a ResponseExceedsSizeLimitException.