calculate object counts on the fly
do not predict background