count_characters([H|T], #{ H := N }=X) -> …
[1] http://stackoverflow.com/questions/23106543/illegal-pattern-...