HNO3 or nitric acid, is a very strong acid. Since a strong acid dissociates completely and nitric acid offers one proton per molecule, you take the molar concentration of the acid and use that as the Hydrogen ion concentration.
pH=−log(2×10−4M)
pH=3.7