added count() to config class
Merge pull request #2964 from darkgaro/2963_count_missing

added count() to config class