protected function getTotalCount()
    {
        $query = $this->modelRepository->query();

        $this->applyListParentToQuery($query);

        return $query->count();
    }
protected function getTotalCount()
    {
        $query = $this->modelRepository->query();

        $this->applyListParentToQuery($query);

        return $query->count();
    }
protected function getTotalCount ( ) { $ query = $ this -> modelRepository -> query ( ) ; $ this -> applyListParentToQuery ( $ query ) ; return $ query -> count ( ) ; }
Returns total count of all models.

@return int
Returns total count of all models .