TEIID-2396 adding ifnull to handle no rows for count