public Integer getTransactionCount() {
    return transactionPool.count();
  }
Returns the count of transactions in the transaction pool.

@return the count of transactions in the transaction pool.
ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/graphql/internal/pojoadapter/PendingStateAdapter.java