Added a countCollections method for to the DAO implementation, as well as a test case for the
new method.