I researched this matter some time back and found examples of boats carrying upwards of 250 rounds (in one of the Clay Blair volumes there is an example of a Type IXD2 Luth, U-181, carrying 377 rounds) so I reckoned on 250 rounds being a reasonable average.
Edit:
http://www.uboat.net/technical/guns.htm