I've added a record-count model method (and tests) in my clj-record
fork at
http://github.com/jimm/clj-record. A few examples:
; insert two records
(manufacturer/record-count) ; => 2
(manufacturer/record-count ["name = ?", "good-name"]) ; => 1
(manufacturer/record-count {:name "good-name"}) ; => 1
(manufacturer/record-count {:name "bogus-name"}) ; => 0
I've sent a pull request to John.
Jim
--
Jim Menard,
http://www.io.com/~jimm/