How do you not let your mind wander during meditation

Emma Y.
I continued to think about my breathing as a base. Then acknowledged the thought if my mind wandered then went back to thinking about breathing.