explain how improperly counting ending inventory affects the income statement and the balance sheet