A pill counting tray for counting pills. The pill counting tray includes a digital counter with a sensor that can digitally count the pills as they are being moved by a wand on the tray. The pill counting tray also includes a number of small evenly spaced terrain domes on one part of the tray to prevent the pills from clumping or clustering. The pill counting tray also includes a hinged return funnel that inclines upward when the pill counting tray is placed on a counter during counting, such that the hinged funnel creates a backstop to prevent pills from rolling off of the tray. The hinged funnel will rotate downward when the pill counting tray is lifted to ease the return of excess pills to the stock bottle. A portion of the surface of the hinged funnel also includes a number of spaced terrain domes.