Updated code to only count those defects that were not moved out of the release