Mrs. Balbas makes a batch of cookies for her math class. Aaron takes 1/6 of the cookies and runs out the door. Matthew then takes 1/5 of the cookies that are left. Paige takes 1/4 of what remains after Matthew leaves. Koji takes 1/3of what remains after Paige, and then Dylan grabs half of the remaining cookies after Koji. Gavin then swoops in and grabs the last remaining 6 cookies. The rest of the class gets nothing and begins to collectively cry. How many cookies were in the batch, to begin with?