Hiya, correlation doesn't assume the same number of values but the same number of individuals, i.e. everyone was asked the two questions. Though you should have at least around 10 values if you want to assume the variables are linear and use a Pearson correlation. The test you will use will also depend on the number of individuals you have.