refactored LineCountingTask; started refactoring DataLoader