repositories count for self class