fix but in calculating note counts