How many images have over 20 object samples?
over 20 object samples refers to COUNT(OBJ_SAMPLE_ID) > 20
SELECT COUNT(T1.IMG_ID) FROM ( SELECT IMG_ID FROM IMG_OBJ GROUP BY IMG_ID HAVING COUNT(OBJ_SAMPLE_ID) > 20 ) T1