First, QE DOM is unsupported.
Second, numSequences is the total for the entire project, while getSequenceAt() works within the current bin (the project root is also a bin).
Third, you should write me directly with any questions; b b b at adobe dot com.