I want to count the emojis in the text the same as I do it with the hashtags in the next function:
import emoji
def count_sent(text):
t = re.sub('#[\w]*', 'hashtag', 'text')
return(t.count('hashtag'))
How can I build it into this function and get this output: return(t.count('hashtag'),t.count('emoji'))