Use a counter to limit parallel uploads