Lets say you have this program:
#!/usr/bin/env python
import time
while True:
print("True")
time.sleep(1)
then you run it:
./clock.py | wc -l
This will never return anything because it waits for the output to finish before giving the word count.
I want something to run instead of wc -l that will display 1..2..3 like a clock almost.