Counting is dumb. And error-prone. Instead, James should find the message referenced, and operate on the messages between then and the command