If you don't control four or more creatures (including Hanweir Militia Captain itself) at the moment your upkeep begins, its ability doesn't trigger. You can't wait for other effects in your upkeep to provide creatures.