ESP8266-01: Firebase.stream() not working

Hi. I'm using the ESP8266-01 Wi-Fi module and I'm trying to implement Firebase.stream() in my code to read data from Firebase only when there is changes in the data. However, the ESP only read data once after powered on and Firebase.failed() always return true after that.

Below is my code:

#include <FirebaseArduino.h>
#include <ESP8266WiFi.h>

// Set these to your WIFI settings
#define WIFI_SSID "xxx"
#define WIFI_PASSWORD "xxx"

//Set these to the Firebase project settings
#define FIREBASE_URL "xxx"
#define FIREBASE_DB_SECRET "xxx"
#define PATH "/count"

int last_read = 0;
int diff = 0;

void setup() {
 Serial.begin(9600);

 // connect to wifi.
 WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
 Serial.print("connecting");
 while (WiFi.status() != WL_CONNECTED) {
   Serial.print(".");
   delay(500);
 }
 Serial.println();
 Serial.print("connected: ");
 Serial.println(WiFi.localIP());

 //begin Firebase
 Firebase.begin(FIREBASE_URL, FIREBASE_DB_SECRET);
 
 //start streaming the data for the updating value
 Firebase.stream(PATH);
}


void loop() {

 //check if streaming failed and try to restart
 if (Firebase.failed()) {
   Serial.println("streaming error");
   Serial.println(Firebase.error());
   delay(1000);
   Firebase.stream(PATH);
   return;
 }
 
 if (Firebase.available()) {
   //get the event
   FirebaseObject event = Firebase.readEvent();
   int data = event.getInt("data");
   
   Serial.print("count: ");
   Serial.println(data);

   //set streaming again
   Firebase.stream(PATH);
 }
}

In Firebase, count is the name for the node. There is no child node under the node named count. Does any know the solution for this? Any help would be appreciated.