report: Fix count algo when parent is none