Cell density in the corneal stroma is typically determined by counting the number of bright objects, presumably keratocyte nuclei, in images from clinical confocal microscopy. We present a program that identifies bright objects and counts those that most likely represent cells. Selection variables were determined from 125 normal corneas with cell densities that had been assessed manually. The program was tested on 17 corneas of patients before and at several intervals to 5 years after laser in situ keratomileusis (LASIK) surgery. In these corneas, which showed a decrease in cell density after surgery, the program identified cells as well as human observers did.