def count_characters(inp):
    seen = {'G': 0, 'E': 0}
    for row in inp:
        for col in row:
            if (col[0] in ['G', 'E']):
                seen[col[0]] += 1
    return seen
def count_characters(inp):
    seen = {'G': 0, 'E': 0}
    for row in inp:
        for col in row:
            if (col[0] in ['G', 'E']):
                seen[col[0]] += 1
    return seen