Made countMinesSurrounding a generic countChars