added feature count method