fixed issue with method/property counting