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