new methods added to generic classes

those are for getting the count of all elements in table and for getting
the count of all elements in the table, that are not currently hidden