Thank you for your question of breaking the Ten Commandments, “How many of the 10 commandments were broken and sins committed by those who wrote the Bible’s?”
If one is referring to the letter of the Law of the Ten Commandments, there were many Jews who didn’t break the Ten Commandments, but not the spirit of the Law.
I cite two examples of writers of the biblical writers who kept the Law:
Daniel kept the Law. He says this in Daniel 1, “But Daniel resolved not to defile himself with the royal food and wine, and he asked the chief official for permission not to defile himself this way” (NIV). And again in Dan. 6, the text says this, “4 At this, the administrators and the satraps tried to find grounds for charges against Daniel in his conduct of government affairs, but they were unable to do so. They could find no corruption in him, because he was trustworthy and neither corrupt nor negligent. 5 Finally these men said, “We will never find any basis for charges against this man Daniel unless it has something to do with the law of his God.” (NIV).
Saul of Tarsus kept the Law. He says in Philippians 3, “If someone else thinks they have reasons to put confidence in the flesh, I have more: 5 circumcised on the eighth day, of the people of Israel, of the tribe of Benjamin, a Hebrew of Hebrews; in regard to the law, a Pharisee; 6 as for zeal, persecuting the church; as for righteousness based on the law, faultless” (NIV).
I would think that many of prophets and orthodox Jews were able to keep the letter of the Law. The Apostle Paul states that according to the Law, he was blameless. If he was able to keep the Ten Commandments, then certainly other Jews could do the same as well.
If one is referring to the spirit of the Ten Commandments, then none is righteous, no not one. Jesus said this, “You have heard that it was said to the people long ago, ‘You shall not murder,[a] and anyone who murders will be subject to judgment.’ 22 But I tell you that anyone who is angry with a brother or sister[b][c] will be subject to judgment. Again, anyone who says to a brother or sister, ‘Raca,’[d] is answerable to the court. And anyone who says, ‘You fool!’ will be in danger of the fire of hell” (NIV).
Thus, a conscientious Jew or biblical writer of the Old Testament can keep the Ten Commandments by not having other idols, keeping the Sabbath, not commit murder, adultery, steal, bearing false witness, coveting what other people’s possession. It is doable. If one thinks about keeping the spirit of the Ten Commandments, that is something else. No one is able to keep the spirit of the Ten Commandments except Jesus.
Remember, God looks at the heart and mind of a person, not just the physical action or inaction of the person. A person may not physically commit adultery with a person, but in one’s heart and mind that person can committed adultery.
Summary: The writers of the Old Testament were able to keep the letter of the Law, while the writers of the New Testament were aware of their failure to keep the spirit of the Law. Both the Old and New Testament writers thank God for the provision for the forgiveness of sins.
-Kingston