Man pleads guilty to three counts of driving while impaired