select count(*) from ec_categories where sort_key = :sort_key