Scala: Occurences with pairs, Map and foldLeft