Write SQL query to solve given problem: How many object elements can be detected on image no. 31?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT COUNT(OBJ_CLASS_ID) FROM IMG_OBJ WHERE IMG_ID = 31