Actually, I'm not sure why it's even needed in this method at all. Can't the count of installed gems be determined outside of this method?