Fixing test: Counting entries instead of parsing their names. Hopefully this will make the test run in Linux