def getCount(strCase):
    strChars = list(strCase)
    markList = [0]*len(strChars)
    prev = strChars[0]
    for i in range(1,len(strChars)):
        if(strChars[i] == prev):
            markList[i] = 1
        else:
            prev = strChars[i]
    return sum(markList)