How many PCI lanes do i need

Solution
there are 16 lanes on the CPU,which uses the first two PCI-e x16 slots on your Z170 motherboard as 16x/0x or 8x/8x for graphics cards, either solo or SLI/Crossfire. then there are 26 additional lanes allocated by the motherboard as x4 and x1 slots, your SATA and USB ports. an M2 SSD eats two SATA ports
there are 16 lanes on the CPU,which uses the first two PCI-e x16 slots on your Z170 motherboard as 16x/0x or 8x/8x for graphics cards, either solo or SLI/Crossfire. then there are 26 additional lanes allocated by the motherboard as x4 and x1 slots, your SATA and USB ports. an M2 SSD eats two SATA ports
 
Solution