No-Library (pure JS), HTML, CSS, JavaScript
The countDims() function seems to execute right up to the return statement, but then fails to return an actual value.