private function countFiles($fieldName = null)
    {
        $finder = new Finder();
        $finder->files()->in($this->getFilePath($fieldName));
        return count($finder);
    }
private function countFiles($fieldName = null)
    {
        $finder = new Finder();
        $finder->files()->in($this->getFilePath($fieldName));
        return count($finder);
    }
private function countFiles ( $ fieldName = null ) { $ finder = new Finder ( ) ; $ finder -> files ( ) -> in ( $ this -> getFilePath ( $ fieldName ) ) ; return count ( $ finder ) ; }
Count files in the field directory

@param null $fieldName
@return int
Count files in the field directory