This method of the Device Class retrieves the number of pens used by the device.
public int getNumberOfPens();
Returns the number of pens.