crypto: Fix bug in countCut. Thanks to Wenting :)