You should look for the real subject in the sentence. For example, in the sentence "There are fifteen students in the room today," the real subject is "students," so the word "there" is treated as ...