Derivative portal statistics script.

pfff... typos... meh. Fixed.