Add ability to specify the number of samples of a pdf from a script