We don't really do anything with the number other than print it since I'm sure that half the mice don't report the correct number anyway (especially with the wheel button mapping). But having a bit more debug info is good.
Less SIGABRTs are less exciting, but sometimes boredom is what we want.
Ported from xf86-input-mouse, with a few cleanups.