Add routine to compute nSamples of coneSamples