Question: How many users are logged in?
SQL: SELECT count(*) FROM users WHERE user_login  =  1