Using dimension to count components - Linear Algebra | Zoonk