Get the array size required for holding partial derivatives' data.
This number includes the single 0 order derivative element, which is guaranteed to be stored in the first element of the array.