Mei Mei is organizing textbooks on her bookshelf. She has a Spanish textbook, a math textbook, a history textbook, and a writing textbook. How many different ways can she line the textbooks up on her bookshelf?