Logic code and diagrams for a lightweight rifle-mounted ammunition count display.