This construction is always in accusative regardless of the numeral. Dunno why.




Два раза, because раз is masculine.