I am trying iterate an list and then doing an range check on each item and cumalating scores accordingly.

Pretty straight forward. I feel like i am doing this in more traditional way and creating lot of "var" variables.. 

Is there an effective functional/immutable way of achieving this behavior?

```
  var score_1 = 0
  var score_2 = 0
  var score_3 = 0
  var score_4 = 0
  var score_5 = 0

  val list = List(1,1,1,0.8,0.75,0.7,0.7,0.5,0.4,0.25,0.2,0.15,0.1)

  list.foreach( i => {
      i.toDouble match {
        case x if( x == 1.0 ) => score_1 += 1
        case x if( x >= 0.75 && x < 1 ) => score_2 += 1
        case x if( x >= 0.50 && x < 0.75) => score_3 += 1
        case x if( x >= 0.25 && x < 0.50) => score_4 += 1
        case x if( x >= 0 && x < 0.25 ) => score_5 += 1
        case _ => 
      }
    })

 println(score_1,score_2,score_3,score_4,score_5)

```