Revert "Revert "Counting zeros""

Reverts yahoo/samoa#103