Counting matrix points on certain varieties over finite fields