protected function _getCount($identifier, array $extensions = ['jpg', 'png', 'jpeg']) {
		return $this->Table
			->find()
			->where(['model' => $identifier])
			->andWhere(['extension IN' => $extensions])
			->count();
	}
protected function _getCount($identifier, array $extensions = ['jpg', 'png', 'jpeg']) {
		return $this->Table
			->find()
			->where(['model' => $identifier])
			->andWhere(['extension IN' => $extensions])
			->count();
	}
protected function _getCount ( $ identifier , array $ extensions = [ 'jpg' , 'png' , 'jpeg' ] ) { return $ this -> Table -> find ( ) -> where ( [ 'model' => $ identifier ] ) -> andWhere ( [ 'extension IN' => $ extensions ] ) -> count ( ) ; }
Gets the amount of images for a model in the DB.

@param string $identifier
@param array $extensions
@return int
Gets the amount of images for a model in the DB .