I do not think that correlation is applicable in this case. Correlation coefficient is equal to 1 (-1) when there is Y is a linear function of X. We can say monotonic instead of linear when using Spearman rank correlation.
Probably other methods should be used here.