After the announcement of a sale, a bookstore sold 1/2 of all its books in stock. On the following day, this bookstore sold 4,000 more books. Now only 1/10 of the number of books in stock before the sale remain in the store. How many books were in stock before the announcement of the sale?