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