fixing return from countAllParses to return the actual number, rather
than the list containing it...
more functionality, and removing use of shadow keyword (since the Pyret/JS
grammar doesn't handle it yet)