Mixing layers can grow in time or space by vortex pairings that succeed each other in a nearly self-similar way. We use a point vortex model to study how confinement eventually limits this growth process, leading us to propose a wavelength selection mechanism for free shear layers with counterflow.