Ball lock kegs are 8.5" dia x 25" high.
Pin lock kegs are 9" dia x 23" high.
You can make some 9" round circles out of paper to see how many kegs will fit in horizontally.
You can chop the handles off a corny keg, but it won't really matter because the beer and gas connections stick up higher...