class Net::IMAP::ESearchResult
def count; data.assoc("COUNT")&.last end
Requires +ESEARCH+ {[RFC4731]}[https://www.rfc-editor.org/rfc/rfc4731.html#section-3.1] or
the +COUNT+ return option wasn't specified.
Returns +nil+ when the associated search command has no results, or when
Returns the number of messages that satisfy the SEARCH criteria.
:call-seq: count -> integer or nil
def count; data.assoc("COUNT")&.last end