     (dom/component
       (dom/footer #js {:id "footer"}
         (dom/span #js {:id "todo-count"}
-          (dom/strong nil (count todos))
-          (str " " (pluralize active "item") " left"))
+          (dom/strong nil count)
+          (str " " (pluralize count "item") " left"))
         (dom/ul #js {:id "filters"}
           (dom/li nil
             (dom/a #js {:href "#/" :className (sel :all)} "All"))

      (store "todos" app))
    dom/IRender
    (-render [_ owner]
      (let [active    (count (filter :completed todos))
            completed (- (count todos) active)
            comm      (dom/get-state owner :comm)]
        (dom/div nil

                           todo))})
            (range (count todos))))))))

(defn footer [{:keys [showing todos] :as app} opts]
  (let [{:keys [count completed comm]} opts
        clear-button (when (pos? completed)
                       (dom/button
                         #js {:id "clear-completed"
