patternLength function

Get the number of PTPattern tables in a PTModule