Counting e-mail messages?

that depends.. if you want to have the Ethernet shield running, it should be doable.. but it's hard to do.. then again if you have a program running in background that does all the searching and counting its kind of easy.