Practice this with your Yorkie several times.
Any time he barks, wait until he reaches the limit you have set, then give him the command, redirect his actions, and reward him.
With lots of practice, your Yorkshire Terrier should recognize the "quiet" command as a command to stop barking.