added counting to SELECT TYPES