FileCountThread counts files correctly (issue #28)