src/Message.php
public function list($folder, $label = null, $read = 1)
    {
        return $this->repository
            ->pushCriteria(new MessageResourceCriteria($folder, $label, $read))
            ->mailList();
    }
public function list($folder, $label = null, $read = 1)
    {
        return $this->repository
            ->pushCriteria(new MessageResourceCriteria($folder, $label, $read))
            ->mailList();
    }
public function list ( $ folder , $ label = null , $ read = 1 ) { return $ this -> repository -> pushCriteria ( new MessageResourceCriteria ( $ folder , $ label , $ read ) ) -> mailList ( ) ; }
Returns count of message with given label.

@param array $filter

@return int
Returns count of message with given label .