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