Adding DirectoryCountSearch method and test cases