fixed request count calculation for empty datasets