Refactor DataSourceCSV::count()