Jim West will be aghast, but I'm going to quote Wikipedia.
Doing simple searches on "stylometry" landed me on the Wikipedia page, which has the following (and yes, Jim, the quotation is footnoted). The bold portion is the money quote:
The development of computers and their capacities for analyzing large quantities of data enhanced this type of effort by orders of magnitude. The great capacity of computers for data analysis, however, did not guarantee quality output. In the early 1960s, Rev. A. Q. Morton produced a computer analysis of the fourteen Epistles of the New Testament attributed to St. Paul, which showed that six different authors had written that body of work. A check of his method, applied to the works of James Joyce, gave the result that Ulysses was written by five separate individuals, none of whom had any part in A Portrait of the Artist as a Young Man.
All the more reason, at least for me, for being interested in stylometry as a better understanding of style, and learning more about how authors communicate. If your primary or even only interest in studying style is authorship attribution ... well ... you'll be disappointed.
Also: In many extended discussions on the authorship of the Pastorals, you'll run across Morton's name and work. Now, I'm not saying it's all bogus, there is important stuff in there about style. But discerning particular attributes of "style" (particularly through counting) does not mean one has discerned authorship. Of this, beware.