An image forming apparatus which recognizes a person image in a photographic image and sets the number of the recognized person images as a number of prints for the photographic image, the image forming apparatus comprising: an association portion configured to, when a plurality of photographic images have been read, determine using face detection, for each of the plurality of photographic images, whether or not one or more person images are included in the photographic image, associate, as the number of prints, the number of person images included in the photographic image with the photographic image when the photographic image is a person photographic image that includes one or more person images, and associate zero as the number of prints, with the photographic image when the photographic image is a scenic photographic image that includes no person image; a determination portion configured to determine whether, among the plurality of photographic images, there is a person photographic image including one or more person images; an inquiry portion configured to inquire a user about whether to add the number of photographers to the number of prints associated with each photographic image, when there is a person photographic image; and an addition portion configured to set an addition number obtained by adding the number of photographers to the number of prints for each photographic image, as a number of prints for each photographic image when receiving from the user a reply that the number of photographers is to be added to the number of prints, characterized in that when there is a person photographic image, the inquiry portion displays a photographer number addition screen on which are displayed thumbnail images corresponding to the photographic images, the number of prints associated with each photographic image, a message which inquires about whether to add the number of photographers to the number of prints, an OK key, and a cancel key, and inquires the user about whether to add the number of photographers to the number of prints associated with each photographic image, when the OK key is selected on the photographer number addition screen, the addition portion sets the addition number obtained by adding the number of photographers to the number of prints for each photographic image, as a number of prints for each photographic image, and when the cancel key is selected on the photographer number addition screen, the addition portion sets the number of prints associated with each photographic image, and when all of the plurality of photographic images are scenic photographic images, the addition portion sets one as the number of prints to each of the photographic images. an association portion configured to, when a plurality of photographic images have been read, determine using face detection, for each of the plurality of photographic images, whether or not one or more person images are included in the photographic image, associate, as the number of prints, the number of person images included in the photographic image with the photographic image when the photographic image is a person photographic image that includes one or more person images, and associate zero as the number of prints, with the photographic image when the photographic image is a scenic photographic image that includes no person image; a determination portion configured to determine whether, among the plurality of photographic images, there is a person photographic image including one or more person images; an inquiry portion configured to inquire a user about whether to add the number of photographers to the number of prints associated with each photographic image, when there is a person photographic image; and an addition portion configured to set an addition number obtained by adding the number of photographers to the number of prints for each photographic image, as a number of prints for each photographic image when receiving from the user a reply that the number of photographers is to be added to the number of prints, characterized in that when there is a person photographic image, the inquiry portion displays a photographer number addition screen on which are displayed thumbnail images corresponding to the photographic images, the number of prints associated with each photographic image, a message which inquires about whether to add the number of photographers to the number of prints, an OK key, and a cancel key, and inquires the user about whether to add the number of photographers to the number of prints associated with each photographic image, when the OK key is selected on the photographer number addition screen, the addition portion sets the addition number obtained by adding the number of photographers to the number of prints for each photographic image, as a number of prints for each photographic image, and when the cancel key is selected on the photographer number addition screen, the addition portion sets the number of prints associated with each photographic image, and when all of the plurality of photographic images are scenic photographic images, the addition portion sets one as the number of prints to each of the photographic images.