can you make a scoreboard count only items with specific components?

i'm trying to make a scoreboard to detect when a specific firework rocket is used but i can't figure it out (if it's possible at all)

Continue to help post