pub fn hash_to_object_count(hash: &[u8]) -> Result<i64, Error>
Converts a hash (expected to be an i64 as bytes) to an object count.