A geometric approach to understanding ranks of fundamental groups