Write SQL query to solve given problem: How many 'has' predicate classes does image ID 107 have?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT COUNT(T2.PRED_CLASS) FROM IMG_REL AS T1 INNER JOIN PRED_CLASSES AS T2 ON T1.PRED_CLASS_ID = T2.PRED_CLASS_ID WHERE T1.IMG_ID = 107 AND T2.PRED_CLASS = 'has'