If you set it all up in the Script Generator, you can add these lines at the bottom of the script:
bs = calculator.basisSet()
bs.onsiteParameters()['mo'].angularMomenta()
bs.onsiteParameters()['s'].angularMomenta()
You will then see that the Mo basis set is sp3d5 and for S it's sp3. So you have 9 orbitals for Mo and 4 for each S atom = 17 in total. The ordering is also seen from the printout, and of course there is a major ordering by atoms. That is, for instance the matrix element on row 9, column 8, i.e. H[9,8] (remember, the first row/column is (0,0)) would be the Hamiltonian element between a d-orbital in Mo and a p-orbital in the first S atom. H[13,16] would be between the s-orbital in the second S atom and a p-orbital in the second S atom.
The orbitals with in spd are ordered as
s: s
p: y, z, x
d: x*y, y*z, x^2+y^2-2*z^2, x*z, x^2-y^2