Who has a bigger population Ireland or New Zealand?

Ireland would have a bigger population. The Republic of Ireland alone would have a bigger population than New Zealand and together with Northern Ireland it is even bigger.