Option Explicit
Private Sub CommandButton1_Click()
Dim ctl As MSForms.Control
Dim lngCntOpt As Long
Dim lngCnt As Long
For Each ctl In Me.Controls
lngCnt = lngCnt + 1
If TypeOf ctl Is MSForms.OptionButton Then
lngCntOpt = lngCntOpt + 1
End If
Next ctl
MsgBox "There are " & lngCnt & " controls on the form, and " & lngCntOpt & " are option buttons"
End Sub