There are so many mail servers that the exact steps will vary with your choice of mail server.
More research with https://www.google.com/search?q=telnet+to+mail+server+read+mail+tutorial&gl=US
I can login to my server and load the inbox but how can I determine how many unread messages are in my inbox?

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic