National Electric Codes for Wire in Electrical Boxes NEC-Table370-16a
Each wire coming into the box and connecting to a device counts as one wire of that size. Where devices are mounted in the box, the total conductor count must be increased by two for each