Add count function, start tee method