Fatigue life calculation by rainflow cycle counting method