The number of pole pairs in a geared hub motor depends on its design and construction. Typically, geared hub motors have 1 or 2 pole pairs, with each pole pair consisting of a north and south pole.
The hub has usually 1 speed magnet though as vfr has mentioned sometimes maybe 6 for the display reading, also surrounding the copper windings are a further 16 -20 magnets to help configure the ratio for correct speed calculation.
Maintenance for hub motors includes regular cleaning and lubrication, occasional bearing replacement, and checking bolt tightness to prevent damage and ensure optimal performance.
Hub motors are commonly used in sports cars and high-end passenger vehicles to provide enhanced performance and efficiency.