Perfect Randy thank you very much for that!
This is exactly what I was looking for!
Just to confirm to anyone reading this back in the future these are the commands I ran
select count(*) from
epmdocumentmaster edm,
epmdocument ed
where
upper(edm.cadname) like '%.ASM' and
upper(edm.ida2a2) = ED.IDA3MASTERREFERENCE;
select count(*) from
epmdocumentmaster edm,
epmdocument ed
where
upper(edm.cadname) like '%.DRW' and
upper(edm.ida2a2) = ED.IDA3MASTERREFERENCE;
select count(*) from
epmdocumentmaster edm,
epmdocument ed
where
upper(edm.cadname) like '%.PRT' and
upper(edm.ida2a2) = ED.IDA3MASTERREFERENCE;