count that works for a runnable