The number of solutions of xp = 1 in a finite group