Almost done...takes strings like wwwbbbw and outputs w3b3w1.