dorothy was going to see the wizard of oz...she stopped at the bakery and bought a box of cookies.

she met the scarecrow and gave him half the cookies. she ate half of the remaining cookies and threw one half cookie away.

she met the tin man and gave him half the cookies. she ate half the remaining cookies and threw one half cookie away.

she met the lion. she gave him half of her cookies. she ate half the remaining cookies and threw the LAST half cookie away.

how many cookies did dorothy leave the bakery with?