get stats from csv files