No, the Skeleton Merchant does not count towards the total number of NPCs required for the Dye Trader to move in. The Dye Trader requires at least four other town NPCs in the world, and while the Old Man, Traveling Merchant, and town pets count towards this total, the Skeleton Merchant does not.