pub async fn count(&self) -> i64 {
        if self.store.is_persistent() {
            self.store.count().await.unwrap_or(0i64)
        } else {
            self.store.inner.read().await.len() as i64
        }
    }
/// Returns a i64 count of how many Sessions exist.
///
/// If the Session is persistant it will return all sessions within the database.
/// If the Session is not persistant it will return a count within AxumSessionStore.
///
/// # Examples
/// ```rust no_run
/// let count = session.count().await;
/// ```
///
Returns a i64 count of how many Sessions exist.
If the Session is persistant it will return all sessions within the database.
If the Session is not persistant it will return a count within AxumSessionStore.
Returns a i64 count of how many Sessions exist . If the Session is persistant it will return all sessions within the database . If the Session is not persistant it will return a count within AxumSessionStore .
pub async fn count(&self) -> i64 {
        if self.store.is_persistent() {
            self.store.count().await.unwrap_or(0i64)
        } else {
            self.store.inner.read().await.len() as i64
        }
    }
pub async fn count ( & self ) -> i64 { if self . store . is_persistent ( ) { self . store . count ( ) . await . unwrap_or ( 0i64 ) } else { self . store . inner . read ( ) . await . len ( ) as i64 } }
Returns a i64 count of how many Sessions exist.
Returns a i64 count of how many Sessions exist .
&self
&self
examples
```rust no_run
let count = session.count().await;
```
` ` ` rust no_run let count = session . count () . await ; ` ` `