r126: bidirectional counting