A Cherenkov beam counter for ultra-relativistic heavy-ion experiments