added a new processData that keeps track of token counts