load count from db on storage init, also expose through REST API. adds to #72