Added count function to T3