select count(*) from cr_items where name = :name and parent_id = :parent_id