SELECT count(*) FROM users WHERE user_login  =  1
Count the number of users that are logged in.
SELECT count ( * ) FROM users WHERE user_login = 1
select count ( * ) from users where user_login = value
Count the number of users that are logged in .