load-template key counting expanded