def METHOD_NAME(count_exact_amount):
    """Tests that the build coordinate protocol behaves correctly for substances
    with exact amounts."""
    import mdtraj
    substance = Substance()
    substance.add_component(Component("O"), MoleFraction(1.0))
    substance.add_component(Component("C"), ExactAmount(1))
    max_molecule = 11 if count_exact_amount else 10
    build_coordinates = BuildCoordinatesPackmol("build_coordinates")
    build_coordinates.max_molecules = max_molecule
    build_coordinates.count_exact_amount = count_exact_amount
    build_coordinates.substance = substance
    with tempfile.TemporaryDirectory() as directory:
        build_coordinates.execute(directory)
        built_system = mdtraj.load_pdb(build_coordinates.coordinate_file_path)
    assert built_system.n_residues == 11