Make `table_name.*` to act like `:all` in performing `count`

Make `table_name.*` to act like `:all` in performing `count`
Fixes https://github.com/rails/rails/issues/11824