I remember reading about a type IXD that was able to cram 27 torpedoes on board. It was in a report about the interrogation of some prisoners of the sub. I don't remember which one it was, but the report is somewhere on this page:
http://www.uboatarchive.net/Uboatlist.htm