Do you mean that you currently use several similar queries to count different attributes by polygon type?
And you want to do all the counting in one query (giving one output table)?
In that case I think you will want to group by both polygon type and attribute.
Should any existing attribute values be excluded from counting? If so, is there a list of all attributes to be counted?
Last question. If for a given polygon type, a given attribute is repeated (appears more than once, perhaps several or many times), should the repeats be included in the count, or do you only want to count distinct attribute values?