Twelve cells having the same emf are connected in series and are kept in a closed box. Some of the cells are wrongly connected. This battery is connected in series with an ammeter and two cells identical with others. The current is 3 A when the cells and the battery aid each other and is 2 A when the cells and the battery oppose each other. How many cells in the battery are wrongly connected?