code: private boolean isCountQuery()
      {
          if (getKunderaQuery().getSelectStatement() != null)
          {
              final Expression selectClause = getKunderaQuery().getSelectStatement().getSelectClause();
  
              if (selectClause instanceof SelectClause)
              {
                  final Expression expression = ((SelectClause) selectClause).getSelectExpression();
  
                  return expression instanceof CountFunction;
              }
          }
  
          return false;
      }
docs: Checks if is count query.
  
  @return true, if is count query