Hide empty counters

Adding preferences option to hide single empty counters.
Removing deprecated preferences handling