An image forming apparatus include: a supply source that supplies image
data formed in page units; a blank-paper detecting unit that
discriminates whether the image data includes a blank page; an image
forming unit that removes the blank page in the image data and forms an
image on the basis of the image data other than the blank page; and a
counter that counts a total number of pages of the image data supplied
from the supply source and counts the number of valid pages obtained by
excluding the blank page from the total number of pages. The image
forming apparatus performs charging on the basis of a count value of the
number of valid pages and displays the total number of pages and the
number of the blank pages on a display unit using an output of the
counter such that the total number of pages and the number of the blank
pages can be compared.