One of my writing group partners has a novel coming out in 2016 and accompanying her process has been a fascinating front-row-seat view of the whole thing. She did one full rewrite according to her agent's suggestions before the novel even did the sub rounds. Then, once it was picked up, her editor had her do two full rewrites (one bigger, the other expanding characters), besides all the smaller line-edit type rounds which came later on. It was intensive and exhausting.
However, this was for a book with a big, fat advance which is coming out with a big name publisher. Another friend's book, which was purchased with an ordinary sort of advance as a digital title, had less intensive edits. So perhaps the amount of time/money spent on editing = how much the publisher is investing in your novel?
Also, wondering how much work a small indie publisher is able/willing to put into their books?