Rob Farley #1 Yeah, but in most situations you cycle through all your types anyway so you can just stick a counter = counter + 1 within your type loop instead of having it as a seperate function.