By considering the specialisation ${{s}_{\lambda }}(1,\,q,\,{{q}^{2}},\ldots ,\,{{q}^{n-1}})$ of the Schur function, Stanley was able to describe a formula for the number of semistandard Young tableaux of shape $\lambda $ in terms of the contents and hook lengths of the boxes in the Young diagram. Using specialisations of symplectic and orthogonal Schur functions, we derive corresponding formulae, first given by El Samra and King, for the number of semistandard symplectic and orthogonal $\lambda $-tableaux.