Your question is not clear.I hope you are tring for these things
Maintain a status column in SQL login table.Set default status =o and update it into 1 when user login and get count of status =1.You will get total no of logged in user
likewise update it into 0 when logout.
OR if you need count of visitor of website
Click here[
^]