NXP-14871: compute history results count only once, when it is unset