Managing large crowds in public spaces is a critical task for ensuring safety, maintaining order, and optimizing resources. However, traditional crowd counting methods, such as manual observation and basic sensor-based systems, often fail in complex scenarios due to their slow response times, lack of scalability, and limited accuracy in handling dense or dynamic environments. This creates a significant challenge in situations where real-time crowd data is crucial, such as during large events, in transportation hubs, and in emergency evacuations. To address these challenges, real-time crowd counting systems powered by machine learning have been developed. These systems utilize advanced technologies such as computer vision and deep learning to process images and videos captured from cameras in real-time. Specifically, machine learning models are employed to detect and analyze crowd density patterns. These models are capable of handling issues like occlusion (when people block each other), varying crowd sizes, different camera angles, and lighting conditions, ensuring reliable performance across diverse environments. These include enhanced safety through early detection of overcrowding, optimized resource allocation in public spaces, and better planning and control during events or emergencies. This abstract highlights the benefits of real-time crowd counting systems powered by machine learning, including their ability to improve safety, optimize resources, and adapt to different environments.