function that counts exlamations marks