alignCount function

Count the number of align