public function totalAction(Request $request)
    {
        $this->checkAccess('FUNCTIONS_TOTAL', null);
        $count = $this->getResourceManager()->getCountElements();
        $view = $this->view(array('total' => intval($count)), \FOS\RestBundle\Util\Codes::HTTP_OK);
        return $view;
    }