<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def prepare(doc):
 """Sets the caption_found and plot_found variables to False."""

    doc.caption_found = False
    doc.plot_found = False
    doc.listings_counter = 0