How can I count the options selected in radiobuttons?