Measuring Cosmological Parameters with Galaxy Surveys