The .toDouble should be on the 'count':

```scala
scala> 45L / 34L
res0: Long = 1

scala> (45L / 34L).toDouble
res1: Double = 1.0

scala> (45L / 34L.toDouble)
res0: Double = 1.3235294117647058
```