Lin is baking cakes. Each cake needs 34 cup of brown sugar, and Lin uses 412 cups of brown sugar for the entire batch of cakes. How many cakes does Lin bake?