Apparatus and methods are described for analyzing a bodily sample. A microscope system acquires one or more microscope images of the bodily sample. A computer processor identifies elements as being candidates of a given entity, in the one or more images. At least one sample-informative feature, relating to a characteristic of the candidates of the given entity in the sample as a whole, is extracted from the one or more images. A characteristic of the sample is determined at least partially based upon the sample-informative feature, and an output is generated in response thereto. Other applications are also described.