SELECT MAX(counted) FROM( SELECT COUNT(*) AS counted FROM i_user_login_logs GROUP BY userId ) AS counts;