Fixed numAnomaliesDEtected count bug