counting number of emails