A correlation between folding rate and contact order