Droplet sorting based on the number of encapsulated particles using a solenoid valve.