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