Scala NGram counter prototype