Create a function in Python to count the number of each letter in the sentence "Hello world, this is GPT!"
def countLetters(sentence): 
    counts = dict() 
    for c in sentence: 
        if c in counts: 
            counts[c] += 1
        else: 
            counts[c] = 1
  
    return counts