The size of a set can be determined using the SCARD command.  SCARD will return the cardinality of a set or the number of members in the set.  For example, if I had a Redis set my_set stored in the database that looked like (Apple, Orange, Banana), I could get the size using the following code:
SCA...