Isabella backed cookies for 3 hours. She spent the same amount of time baking each batch. It took her one eighth an hour to bake each batch. How many batches of cookies did she bake?