public function getSnippetsAmount(
        $locale,
        $type = null,
        $search = null,
        $sortBy = null,
        $sortOrder = null
    ) {
        $query = $this->getSnippetsQuery($locale, $type, null, null, $search, $sortBy, $sortOrder);
        $result = $query->execute();

        return count(iterator_to_array($result->getRows()));
    }