With regards to the number of duplexes for residential,I would check with the local authority or who ever issued the permit.Many times these local authorities have supplements to the NEC that are enforced.Also check to see what year of the NEC they are using.

Chris