SELECT count(*) c from categories where parent_id=21 3