created number of batches method for oven