A woman sells to the first customer half her stock of apples and half an apple, to the second customer she sells half her remaining stock and half an apple, and so on to the third and to the fourth customer. She finds that she has now 15 apples left. How many apples did she have before she started selling?