Quantum enhanced precision in a collective measurement