Wiring up a tach?

I need some help wiring up my tach. I don't know where the wires go. It has 4 wires and I know it has a switch for how many cylinders. I plan on mounting it on my dash and running the wires under the dashpad and through a firewall opening. Any advice or where these wires go?