An ability of the equipped creature that triggers when a card is put into a graveyard "from anywhere" triggers twice only if (a) a creature card was put into a graveyard from the battlefield and (b) The Masamune is still on the battlefield and attached to the creature with the relevant ability. (For abilities of emblems you own, the same is true, except The Masamune must simply be attached to a creature you control.)