Query/Query.php
public function getCount(EntityManager $em, Request $request)
	{
		$stmt = $this->buildCountQuery($em, $request);
		$stmt->execute();
		return (int) $stmt->fetchColumn();
	}
public function getCount(EntityManager $em, Request $request)
	{
		$stmt = $this->buildCountQuery($em, $request);
		$stmt->execute();
		return (int) $stmt->fetchColumn();
	}
public function getCount ( EntityManager $ em , Request $ request ) { $ stmt = $ this -> buildCountQuery ( $ em , $ request ) ; $ stmt -> execute ( ) ; return ( int ) $ stmt -> fetchColumn ( ) ; }
Get result count for request

@param EntityManager $em
@param Request $request
@return int
Get result count for request