add anotation @XmlRootElement
add method count
update return type