stock contracts optimal number