Systems and methods are described for counting objects by analyzing a digital image. The system or apparatus may include a light source, a digital camera, a textured surface disposed between the light source and the visible light camera, a processing component configured to produce a count of the objects, and a display configured to show the count of the objects. The method may include capturing an electronic image of the objects, detecting a plurality of edges within the image, identifying a plurality of concave sections based on the edges, identifying a regular convex contours based on the edges and the concave sections, determining whether the image is suitable for counting the objects based on the regular convex contours, and determining a count of the objects based the regular convex contours and the determination of whether the image is suitable.