Mark std.string.countchars as @safe and pure
Merge pull request #1519 from tom-tan/safe-pure-string-countchars

Mark std.string.countchars as @safe and pure