Trying to get score to impact a loot table spawned from a spawner

I'm trying to figure out how to get the function set_count to trigger off a player score but setting the count type to score with a fixed target of @p doesn't seem to be working. Theres no errors showing in the logs just nothing pops out
Continue to help post