How many terms began when the term ended in January 3, 1989?
CREATE TABLE table_23237 (
    "Office" text,
    "Branch" text,
    "Location" text,
    "Elected" real,
    "Term began" text,
    "Term ended" text
)
SELECT COUNT("Term began") FROM table_23237 WHERE "Term ended" = 'January 3, 1989'
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many terms began when the term ended in January 3, 1989? ### Input: CREATE TABLE table_23237 (
    "Office" text,
    "Branch" text,
    "Location" text,
    "Elected" real,
    "Term began" text,
    "Term ended" text
) ### Response: SELECT COUNT("Term began") FROM table_23237 WHERE "Term ended" = 'January 3, 1989'