Development of a ammo counter for nerf blasters and its code