A cookie factory uses 1/3 of a barrel of oatmeal in each batch of cookies. The factory used 2/3 of a barrel of oatmeal yesterday. How many batches of cookies did the factory make?