loopLength function

The loop length of a PTSample