Real-time counting technology is now being used to monitor worshipper movement and manage crowd density across the Grand Mosque.