public static function count(Array $body)
    {
        $instance = new static;
        $params = $instance->basicElasticParams();
        $params['body'] = $body;

        $response = $instance->getElasticClient()->count($params);

        return intval($response['count']);
    }
public static function count(Array $body)
    {
        $instance = new static;
        $params = $instance->basicElasticParams();
        $params['body'] = $body;

        $response = $instance->getElasticClient()->count($params);

        return intval($response['count']);
    }
public static function count ( Array $ body ) { $ instance = new static ; $ params = $ instance -> basicElasticParams ( ) ; $ params [ 'body' ] = $ body ; $ response = $ instance -> getElasticClient ( ) -> count ( $ params ) ; return intval ( $ response [ 'count' ] ) ; }
Returns match count

@param array $body
@return integer
Returns match count