[#216] Update frequency calculation to count only increases