new howmanyemails method to know the number of emails