function counter() { count.textContent = tobuys.length; }
localStorage에 key 배열의 length 와 장보기 list 개수가 동일하다.
개수를 가져와서 textContext로 보여준다.