add function to count smiley faces and return the number in an alert