Removed trailing whitespace.
Added statistics to count the number of retains/releases before/after optimization.