[filegen.go] Add number of files argument