Counting closed geodesics in strata