Any process that modulates the number of myofibrils. A myofibril is the contractile element of skeletal and cardiac muscle. It is a long, highly organized bundle of actin, myosin, and other proteins that contracts by a sliding filament mechanism.