I am having a bit of trouble in understanding how firearms work.
Let's take for example the hunting rifle (DMG, page 268). It has the Reload property, and it has 5 shots. Now suppose a creature has the extra attack feature, which let it deal two attacks. If the creature has the rifle, then the creature can make two ranged attacks during its first turn, and then during its second turn the creature makes another two ranged attacks. Finally, during its 3rd turn, the creature can only make one ranged attack, and in its 4th turn the creature can use its action to reload the rifle, which gives it 5 shots once again.
Am I right? Does each shot count as an attack?