Fix wrong count in csv export