prev.child("ViewLikes").child(postId).push().setValue("viewed");
How to count the number of childs under the the root(9999999977). I'm using Value event listener but still the I can't get the counts.
Inside Value event listener below for loop is used.
for(DatanSnapshot a:DatanSnapshot.getChildren())
long count=a.getChildrenCount();