Quiver matrix model of ADHM type and BPS state counting in diverse dimensions