Issue 11253 - std.algorithm.count is not nothrow

https://issues.dlang.org/show_bug.cgi?id=11253

This is another case of using `enforce` which makes `nothrow` impossible. I'm not really sure what to do about this on a global scale; we likely have more functions that use `enforce` like this.