Is saying bismillah before each verse whilst you’re praying (so before reciting surah Hamd or surah Ikhlas) obligatory? Does it count as an ayah?

Yes according to obligatory precaution