Function NumJoyHats(joy_num)

Returns the number of hats on a joystick