select count(*) as num_on from onlineuser where '1498411727'-logtime<=500