You can easily find out number of online customer by the code in the content section
echo “Online Customer “.count($collection);
Finding the Online Customer in magento
We are glad that you preferred to contact us. Please fill our short form and one of our friendly team members will contact you back.