share clojure count function between clojure & clojurescript file types