We have been given two direct commands:

1 John 3:23
And this is his commandment: We must believe in the name of his Son, Jesus Christ, and love one another, just as he commanded us.
Some count differently, but the majority say 10 while others say 617. Yet others will say 11. Who knows? I've never tried to count them! :D