Tidied up controller and got basketCount working