improve generate-names.pl input stats estimation