Gets the number of packages in the sack
a valid PackageSack instance
the number of packages in the sack