-- name: GetCountImageByLocation :one
SELECT 
  COUNT(id) 
FROM images 
WHERE image_type = 'locations'
AND image_of = $1;