count_object. It is pretty obvious whoever changed this didn't think about it much or test it well... *cough* *cough*.