Returns the number of modes that group may have.
group
a `GdkDevicePad`
group to get the number of available modes from
The number of modes available in group.