Upper bounds on the length of a shortest closed geodesic and quantitative Hurewicz theorem