getN function

Extract Sample Size