stat.sh: only count number of *real* packages