Added count to collection stats, added tests.