Why only these 27 books in the New Testament

Why not 30, or 10 books?