To determine the number of courses, divide the height of the wall into equal parts whose length is not greater than the weather exposure for the shake or shingle. Wherever possible, align shingle butt lines with the tops or bottoms of windows or other openings. This may require adjusting a few courses by a fraction of an inch.
For more on installing shingle siding, visit the JLC Field Guide