bug-fix: uninitialized @rank var

- the @rank var used for counting should be initialized to 0 before use
- add verbosity on pruned record counts