Returns the number of matched collections by a given set of parameters.
public count ( integer $depth, array $filter = [], Sulu\Bundle\MediaBundle\Entity\CollectionInterface $collection = null ) : integer | ||
$depth | integer | The depth to which collections are loaded |
$filter | array | The array of filters to apply |
$collection | Sulu\Bundle\MediaBundle\Entity\CollectionInterface | |
return | integer | The number of matched collections |