Count how many ranges an value falls in