Terminal not recognizing brew tap mongodb/brew command when I try to set up MongoDB

I have completed the prerequisites but brew tap mongodb/brew command returns zsh: command not found: brew when I try to complete the installation.