Is there anyway to count specific emojis under the message? (Python)

Solution for Is there anyway to count specific emojis under the message? (Python)
is Given Below:

I’m making a poll command for my discord bot. I use emojis to vote for poll options.

I want my bot to show the results of the poll after some period of time (I didn’t implement timeout yet). But to do it I need to count each emoji. Is there anyway of doing it?

My code so far:

@bot.command(name="poll")
async def poll(ctx, question, option1 = None, option2 = None):
    if option1 == None and option2 == None:
        embed = discord.Embed(
            title="Poll",
            description=f"{question}",
            color = discord.Color.blue()
        )
        msg = await ctx.channel.send(embed=embed)
        message = await ctx.channel.fetch_message(msg.id)
        await message.add_reaction("👍")
        await message.add_reaction("👎")
    embed = discord.Embed(
        title="Poll",
        description=f"{question}",
        color=discord.Color.blue()
    )
    embed.add_field(name=f"{option1}", inline=False)
    embed.add_field(name=f"{option2}", inline=False)
    msg = await ctx.channel.send(embed=embed)
    message = await ctx.channel.fetch_message(msg.id)
    await message.add_reaction("👍")
    await message.add_reaction("👎")

Emoji are just characters, like any other:

>>> st="The quick brown fox👍 jumped over the lazy dog👍"
>>> st.count("👍")
2

and in case you don’t have a fancy emoji-keyboard (ord() is the inverse of chr()):

>>> ord("👍")
128077
>>> ord("👎")
128078

Update – try:

for reaction in message.reactions:
  if reaction.emoji == "👍":
    counts["👍"] += reaction.count

based on these: