Fix the way the number of node strings is calculated to work on older MATLAB versions (specifically v2010a).