fix bug count_all w/ ->object_name (refs #4765)