While playing marbles, your first opponent won half your marbles plus 4 marbles. You lost half of what was left plus 3 marbles to your second opponent, You lost half of what was then left plus 2 more to the third opponent and your fourth opponent won your only remaining marble. How many marbles did you have to begin with?