protected function getCountFor($intMetaModelId, $intFilterId)
    {
        $metaModel = $this->loadMetaModel($intMetaModelId);
        if ($metaModel == null) {
            return false;
        }

        $objFilter = $metaModel->getEmptyFilter();
        if ($intFilterId) {
            $collection = $this->getServiceContainer()->getFilterFactory()->createCollection($intFilterId);
            $values     = [];

            foreach ($collection->getParameters() as $key) {
                $values[$key] = Input::get($key);
            }

            $collection->addRules($objFilter, $values);
        }

        return $metaModel->getCount($objFilter);
    }