count and all generic methods