A bound on the dimension of a totally geodesic submanifold in the Prym locus