An image-forming apparatus comprising: reception means configured to receive a start instruction and an end instruction entered by a service engineer who performs a maintenance work for the image-forming apparatus; first holding means configured to store first counter information that is a number of times of image formation of the image-forming apparatus at a time that the reception means receives the start instruction; second holding means configured to store second counter information that is a number of times of image formation of the image-forming apparatus at a time that a predetermined time has elapsed after the start instruction for the maintenance work is entered by the service engineer; third holding means configured to store third counter information that is a number of times of image formation of the image-forming apparatus at a time that the reception means receives the end instruction entered by the service engineer; and generation means configured to: generate maintenance information based on the second counter information stored in the second holding means if the predetermined time has elapsed after the start instruction for the maintenance work is entered by the service engineer (S604, YES) and the service engineer enters a start instruction again for a maintenance work (S608, YES) before the reception means receives the end instruction from the service engineer (S607, NO), and generate maintenance information based on the third counter information stored in the third holding means in a case that the reception means receives the end instruction (S603, YES) entered by the service engineer before the predetermined time has elapsed (S604, NO) or in a case that the reception means receives the end instruction (S607, YES) after the predetermined time has elapsed (S604, YES) and before the reception of a start instruction again for a maintenance work (S608, NO). reception means configured to receive a start instruction and an end instruction entered by a service engineer who performs a maintenance work for the image-forming apparatus; first holding means configured to store first counter information that is a number of times of image formation of the image-forming apparatus at a time that the reception means receives the start instruction; second holding means configured to store second counter information that is a number of times of image formation of the image-forming apparatus at a time that a predetermined time has elapsed after the start instruction for the maintenance work is entered by the service engineer; third holding means configured to store third counter information that is a number of times of image formation of the image-forming apparatus at a time that the reception means receives the end instruction entered by the service engineer; and generation means configured to: generate maintenance information based on the second counter information stored in the second holding means if the predetermined time has elapsed after the start instruction for the maintenance work is entered by the service engineer (S604, YES) and the service engineer enters a start instruction again for a maintenance work (S608, YES) before the reception means receives the end instruction from the service engineer (S607, NO), and generate maintenance information based on the third counter information stored in the third holding means in a case that the reception means receives the end instruction (S603, YES) entered by the service engineer before the predetermined time has elapsed (S604, NO) or in a case that the reception means receives the end instruction (S607, YES) after the predetermined time has elapsed (S604, YES) and before the reception of a start instruction again for a maintenance work (S608, NO). generate maintenance information based on the second counter information stored in the second holding means if the predetermined time has elapsed after the start instruction for the maintenance work is entered by the service engineer (S604, YES) and the service engineer enters a start instruction again for a maintenance work (S608, YES) before the reception means receives the end instruction from the service engineer (S607, NO), and generate maintenance information based on the third counter information stored in the third holding means in a case that the reception means receives the end instruction (S603, YES) entered by the service engineer before the predetermined time has elapsed (S604, NO) or in a case that the reception means receives the end instruction (S607, YES) after the predetermined time has elapsed (S604, YES) and before the reception of a start instruction again for a maintenance work (S608, NO).