Added count_messages().

  This returns the number of messages in the currently
 selected folder(s).