In the production of facial oil blotting papers, a certain number of papers must be counted before packaging. Currently, the papers are counted by hand, and this is hard work. Also, there are risks of adhesion of dust and wrinkles. In order to solve these problems, we propose a vision-based approach. After the papers, which are arranged by shifting, are captured, the proposed image processing steps detect the boundaries of the papers. By counting the detected boundaries, the number of papers can be counted. Since the parameters for the proposed image processing are optimized by genetic algorithm, prior setting by a user is not necessary. For the experiments, an image dataset was constructed with six types of facial oil blotting papers. The proposed method achieved higher F-measure than in other related works.