Making a Mob Attribute = Score

I want to make angry zombies inspired by the ones from Jragon014, and want to give them a unique functionality of increasing there speed effect based on how many times they've been damaged, whats the best method and how do I do this? (I'm coding in 1.20,4)

Continue to help post