more explicit numeric types
fixes #172: add background fetch tile count API