src/Collection.php
public function count()
    {
        if (is_array($this->items) && $this->items !== null) {
            return count($this->items);
        }
        return 0;
    }
public function count()
    {
        if (is_array($this->items) && $this->items !== null) {
            return count($this->items);
        }
        return 0;
    }
public function count ( ) { if ( is_array ( $ this -> items ) && $ this -> items !== null ) { return count ( $ this -> items ) ; } return 0 ; }
Get count.

@return integer
Get count .