Our innovative cigarette counting system utilizes traditional computer vision techniques and advanced algorithms to accurately count the number of cigarettes in a packet in under 3ms. Unlike traditional contact sensors, which can be prone to inaccuracies when counting cigarettes without filters, our system leverages cutting-edge technologies such as watershed, color segmentation, and masking to recognize and segment cigarettes based on their color, size, and shape. By automating the counting process, our system improves productivity and reduces costs associated with manual labor, helping manufacturers and retailers manage their inventory more efficiently. Our cigarette counting system represents a state-of-the-art solution that utilizes the latest advances in computer vision and algorithms to overcome the challenges of cigarette counting and inventory management.