p.s. I'm calling my controller from spinejs thus:
http://127.0.0.1:8000/app/default/count.json ie I've added on ".json" in addition to decorating the function. when I call this function from another framework (Pyjamas) all is fine. It's something subtle no doubt! :)

