if X is the set of States which count na(No of as) then possible states for counting a will be X={ (naMod20, naMod30),(naMod20,naMod31),(naMod20,naMod32), (naMod21,naMod30)} Here (Mod20,Mod30) means the state where naMod2=0 and naMod3=0, Similarly interpret the others. Now Y is the set of states which count nc(No ofcs) then possible states will be. Y={ncMod60, ncMod61, .........,ncMod65} : ncMod60 means the state where ncMod6=0 similarly interpret the others.
Now the possible states for the machine will be : Z={X*Y} ={(namod20,namod30,ncMod60), ......(naMod21,naMod30,ncMod65). so no of State will be |Z|=24.You can get some idea from the below image how the state could be look like. for X Set,