Core/Database/MSSqlDatabase.php
public function count($query, array $params = [])
    {
        $stmt = $this->connection->prepare($query);
        $stmt->execute($params);
        return $stmt->fetchColumn();
    }
public function count($query, array $params = [])
    {
        $stmt = $this->connection->prepare($query);
        $stmt->execute($params);
        return $stmt->fetchColumn();
    }
public function count ( $ query , array $ params = [ ] ) { $ stmt = $ this -> connection -> prepare ( $ query ) ; $ stmt -> execute ( $ params ) ; return $ stmt -> fetchColumn ( ) ; }
Count query.

@param string $query
@param array $params
@return int
Count query .