Choose answer based on number of hints?

Hi everyone,
I’m trying to automatically choose Answer based on the number of hints I have taken for a card.
For example, if I have uncovered 5 hints, then when I click Show Answer, it should automatically select “Again”.
Is there a way to do that?
Thank you