allow exceptions in searchCount and totalCount to bubble up