If you end up with an NPN sensor, use a pull up resistor, maybe 2k.
You can always wire an NPN sensor to PNP input this way, or vice versa. It also has the effect of inverting the input state (input is false when sensor conducts which is reverse of normal), but for counting pulses or rate in a 50% square wave you don't care.