Tracking Join and Self-Join Sizes in Limited Storage