count character matches instead of column matches