Patent ID: 8655201

Claim:
An image forming apparatus comprising: a toner cartridge which includes a storage section; a toner motor configured to drive agitation of toner in the toner cartridge; a toner-motor driving section configured to drive the toner motor; a count measuring section configured to measure a driving time of the toner motor and calculate, using a predetermined count unit time, a consumption count value indicating a consumption of the toner; an event detecting section configured to detect an operation event; a main body counter configured to sequentially update a main body counter value with the consumption count value and store the main body counter value; a toner counter configured to store a toner counter value in the storage section; a counter comparing section configured to compare of the main body counter value and the toner counter value; and an event processing section configured to perform, based on a transition from the operation event detected by the event detecting section, one of a read processing including reading the toner counter value and storing the read toner counter value as the main body counter value and a write processing including writing the main body counter value as the toner counter value, if the count comparing section determines that the main body counter value is larger than the toner counter value.