yes, counting is just as much a mathematical function as any. this is an odd assignment, try the string manipulation and see if you can get it