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