IStylusInputStylusInfo::GetNumButtons

Returns the number of buttons on the stylus.