SELECT COUNT(*) count FROM post WHERE site = $1 AND ( NOT $2 OR NOT is_read )