Implement a simple transition counter script.