core: child count is not updated for template

Change-Id: Ia6ddedc913bb0a383f560c03282b1ab5295bd4bb
Bug-Url: https://bugzilla.redhat.com/1006313
Signed-off-by: Shahar Havivi <shaharh@redhat.com>