You can obtain the Tax Collector NPC in Terraria by using Purification Powder on a Tortured Soul enemy found in the Underworld. Once you have the Tax Collector, he will earn 50 Copper for every NPC with suitable housing every in-game hour. You can collect these funds from him later.