The rev counter is driven from the alternator. Either the alternator is faulty, or the connection onto the alternator is failing. Try wiggling the spade connector at the back of the alternator, or recrimp it first. If that doesn't help, take it to an autoelectrician and get them to check the alternator. It can probably be repaired cheaper than a new one.
Cheers!