I believe the answer is: visual imagery
visual imagery refers to A memory technique that initiated by utilizing mental images to aid us in remembering a certain information.
In the scenario above,Sarah most likely picture the actual image of her house in her head and manually counted the windows in that image before giving her answer.