Divide the players up in 4 teams positioned in the 4 baseline corners. 1 player steps in from each corner and 2 teams are formed under the baskets. The 2 teams play 2 on 2, until the basket is made or defense gets the ball.
When that happens defense make the outlet pass to the corner and step off the court. Offens run back on defense (transition), and the 2 new offense run a fastbreak.
8 or more
This is a good uptempo competitive drill, if you let the 2 ends play each other. I usually give points for made baskets and take away points on turnovers.
The drill works best with 2 players, but it can be run with 3 players (then you have one line under the basket as well). You can also put in rules about the number of dribbles, passes, screens allowed etc.
Defensive transition, fastbreak.
This basketball drill is licensed under a Creative Commons License. This drill is from Pål Degerstrøm at www.degerstrom.com/basketball.