public function count($key)
    {
        if ($this->has($key)) {
            if (\is_array($this->get($key))) {
                return \count($this->get($key));
            }

            return 1;
        }

        return 0;
    }
public function count($key)
    {
        if ($this->has($key)) {
            if (\is_array($this->get($key))) {
                return \count($this->get($key));
            }

            return 1;
        }

        return 0;
    }
public function count ( $ key ) { if ( $ this -> has ( $ key ) ) { if ( \ is_array ( $ this -> get ( $ key ) ) ) { return \ count ( $ this -> get ( $ key ) ) ; } return 1 ; } return 0 ; }
Return how many files were uploaded for a given key.

@since 1.0.0

@param string $key Item key to check.
@return int
Return how many files were uploaded for a given key .