Returns the number of sub collections contained in a given collection.
public countSubCollections ( Sulu\Bundle\MediaBundle\Entity\CollectionInterface $collection ) : integer | ||
$collection | Sulu\Bundle\MediaBundle\Entity\CollectionInterface | The collectionf or which the number of sub collections should be returned |
return | integer | The number of sub collection in the given collection |