Superconducting transition temperature and the thickness of CoO2 planes of NaxCoO2·yH2O