added method to count As at end of sequence