結果 : how to keep count in recursive function java