title: Counting the number of messages in an e-mail account with python
body: <p>is there any way, in Python, to have access to an e-mail account (I'll need this for gmail but better if any works) and be able to see the number of messages in the inbox (maybe even unread messages only)?
  Thank you.</p>