Add function callback if counter is 0