Forgot to add 1.
So make that:
function getNumericLineStarts temp
put the number of lines of temp into totalLines
sort numeric temp
filter temp with "[1-9]*"
put the number of lines of temp into totalLinesNumericStart
return totalLines-totalLinesNumericStart + 1
end getNumericLineStarts
Jim Lambert