Rewrite CounterTest example of Rhino in Scala.
Rewrite File example of Rhino in Scala.