Frequency Count of a Nested Array

Count how many times each number appears across every level of an arbitrarily nested array and return the totals as an object keyed by the number.