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