You're counting complete chain links, not the rivets.
As the master link is an outer link, you need your new chain to end with an inner link at both ends. So you could fix your master link in to join the ends.
So cutting your new chain to the desired length you should drive out a chain rivet in...