You count the top ones and the bottom ones (for a total of one inch) and add the total together, i.e. 8 on top and seven on the bottom would give you 15 stitches to the inch. ....But....some people just count the top ones, unlike in the "old" days when they counted top and bottom...
...it's up to you how you want to do it.