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