fix bug count_all w/ ->object_name (refs #4765)
Merge pull request #89 from melvinmt/bugfix/4765

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