to calculate counts
correlation calculation for counts greater than a threshhold