A treasure hunter discovered a buried treasure chest filled with a total of 656 gems. 44 of the gems were diamonds, and the rest were rubies. How many of the gems were rubies?