Uses very generic dplyr code to create histogram bins.
Because of this approach,
the calculations automatically run inside the database if `data` has
a database or sparklyr connection. The `class()` of such tables
in R are: tbl_sql, tbl_dbi, tbl_spark
# NOT RUN {# Returns record count for 30 bins in mpgmtcars %>%
db_compute_bins(mpg)
# Returns record count for bins of size 10mtcars %>%
db_compute_bins(mpg, binwidth = 10)
# }