Client count

Changed order of operations on client connect