getfeatureCount method added