Added count function for _count XGET requests