add missing argument types
Move isProcessingCountFile out to separate function - don't attempt to create uneccessary threads