If Insight Engine leaves the battlefield before its ability resolves, it won’t have a charge counter put on it when the ability resolves. Use the number of charge counters on it as it last existed on the battlefield to determine how many cards to draw.