Thanks for your reply. I’ll try your suggestion and get back to you later.
UPDATE: BTW: where would the WHERE clause go? The COUNT function has to select a specific kind of records. Selecting by Type is OK, but the idea is to count a subset of instances within that Type, hence the WHERE clause.
Thank you for your attention.