Made perf counter changes

ElementAt can throw an ArgumentOutOfRangeException when it hits this and there aren't enough samples in the DB