This helper function compares observed values against permuted values and counts the number of permuted values that are greater than or equal to each observed value.
countLargerThan(observedVec, permutedVec)A numeric vector containing the counts of permuted values greater than or equal to the corresponding observed values.