added counter which handles special behavior of aces