upped sample, read top n from stdin