nsams function

Number of Samples