Add afcHelper_countString() to speed up and resolves issues with 49c6688