Remove unnecessary count() method
Switch from hashbangs to html5mode for routing