The complete context makes it clear. Yes. The word "sum" should be avoided in this instance. It should read, perhaps,

"Where K denotes the total number of clusters and m is the number of members in cluster i."

Depending on context, I might eliminate the word "total" above.