code: func handleGetBlockCount(s *rpcServer, cmd interface{}, closeChan <-chan struct{}) (interface{}, error) {
  	best := s.cfg.Chain.BestSnapshot()
  	return int64(best.Height), nil
  }
docs: // handleGetBlockCount implements the getblockcount command.