Calculation of Alignment Occurrence