how can i know the number of partitions of the system by a java program.and also which operating system it is.