Change missing element count calculation method