select count(1) from spam_messages where spam_id=:spam_id