using registry to get execution plan count