How big can your sample size be for z-test?

#1
I'm doing an analysis on gender related to medication adherence with f = 4273, m = 3427. I want to perform a z-test on this data and want to know a suitable sample size for this data?