There is and I forgot to mention that part. I was just going by the count and situation given above.
The new batter would assume the previous batter's count. The new batter would get credit for the at bat and whatever the outcome was with one exception. If the new batter assumed a count with 2 strikes and then struck out, the previous batter would get the AB and be credited with the strikeout.