add getter for number of columns

- columns are used as selection for the bargraph within the
  matrix