I tried to make a function but it came out with some strange bugs, it has to be more or less this script, but enable button only if 5 or more radio buttons are marked. Remembering that my form is huge, it is a questionnaire that has radio groups, for example:
<input type="radio" name="group[001]" id="1">apple
<input type="radio" name="group[001]" id="2">pineapple
<input type="radio" name="group[001]" id="3">melon
...
<input type="radio" name="group[002]" id="4">strawberry
<input type="radio" name="group[002]" id="5">orange
<input type="radio" name="group[002]" id="6">kiwi