In this paper we study formulas of the number of states with given total spin I and isospin T, for n nucleons in a single-j shell, denoted by DIT (j, n). The Talmi's recursion formulas for the number of states with given z-axis projection of total spin are generalized by further considering the isospin couplings, and are applied to derive explicit formulas of DIT (j, n).