def emoji_counter(string): no_of_emojis = 0 for char in string: if char in emoji.UNICODE_EMOJI_ENGLISH: no_of_emojis += 1 return no_of_emojis