seems like this should call a function that takes advantage of couch's reduce to not have to load them all from the db, only to count them