IPv6 Address Types

On this example:

Let’s work on an example…let’s say that we have a LAN and we want to use unique local IPv6 addresses and we require 10 subnets:

The prefix starts with FD.
We have 40 bits for the global ID, each hexadecimal character represents 4 bits so we can pick 10 hexadecimal characters. Let’s use AB:1234:5678 as the global ID.
Our first subnet will start with 0000.

Is the choice to pick 10 hex character influence by the number of subnets that we need? For the subnet bits - the 0000, what do you criterion or method do you use choose the # of bits? Is it the same as in IPv4 where you choose the number of bits needed to accommodate the number of subnets or host u need 2 raised to the number of bits?