What was the duration of Robert Joy's portrayal?
CREATE TABLE "main_characters" (
  "character" text,
  "portrayed_by" text,
  "first_appearance" text,
  "last_appearance" text,
  "duration" text,
  "episodes" text
);
SELECT COUNT("duration") FROM "main_characters" WHERE "portrayed_by"='Robert Joy';