# He believed Yahweh
This means he accepted and trusted what Yahweh said was true.
# he counted it to him as righteousness
"Yahweh counted Abram's belief as righteousness" or "Yahweh considered Abram righteous because Abram believed him"