Swamp gas consists primarily of methane, a chemical compound consisting of a 1 : 4 ratio of carbon to hydrogen atoms. If a sample of methane contains 1564 hydrogen atoms, how many carbon atoms are present in the sample?