Correctly return the number of sent emails