Returns the number of media contained in a given collection.
public countMedia ( Sulu\Bundle\MediaBundle\Entity\CollectionInterface $collection ) : integer | ||
$collection | Sulu\Bundle\MediaBundle\Entity\CollectionInterface | The collection for which the number of media should be returned |
리턴 | integer | The number of media in the given collection |