accurately counting and enforcing max number of entries per column