Added message count to main file