As with most guidelines related to manuscript submission, each journal will have different requirements and expectations for authors. You must check the journal’s website to locate the instructions for authors.
Many journals (including the NEJM, JAMA, and BMJ) use the International Committee of Medical Journal Editors (ICMJE) recommendations.
Substantial contributions to the conception or design of the work; or the acquisition, analysis, or interpretation of data for the work; AND
Drafting the work or reviewing it critically for important intellectual content; AND
Final approval of the version to be published; AND
Agreement to be accountable for all aspects of the work in ensuring that questions related to the accuracy or integrity of any part of the work are appropriately investigated and resolved.
It is important to note that even those who haven’t met the criteria for authorship should be acknowledged as contributors to your work.
Generally, most journals are looking for manuscripts written by more than one author but are often not specific regarding the maximum or minimum number of authors. For example: