My family tree contains two types of people: sourced and unsourced. Every person without a source is marked as “private” and tagged as “unsourced” so that they do not “pollute” my family tree web site.
Gramps, my family tree software of choice, has a report option called “Number of Ancestors Report”. It generates the number of ancestors from each generation there are in a family tree. It lacks an option to exclude people marked as private. Below is a formatted version of the output report, which includes sourced and unsourced ancestors.