A read-only transaction provides a consistent view of persistent data without modifying it. In BoltDB, the View function supplies the transaction callback. section 11.9
Counting tasks
TaskStore.Count opens a View transaction, iterates through the tasks bucket with ForEach, increments taskCount, and returns the count after checking errors.
