Returns the number of pole pairs of the machine
self (Machine) – Machine object
p – Pole pair number of the machine
int