sampleLength function

Get the length of a PTSample